var Script = function () {
	//饼图
    var doughnutData = [
        {
        	value : 520707,
        	color : "#46BFBD" //Rx蓝色 Y
        },
        {
            value : 520707,
            color : "#98FB98" //OTC绿色 Y
        },
        {
            value : 952070,
            color : "#FDB45C" //Rx橙色 A
        },
        {
            value : 152070,
            color : "#FF0000" //OTC红色 A
        },
        {
            value : 751070,
            color : "#4D5360" //Rx黑色 Z
        },
        {
            value : 751070,
            color : "#8B8B7A" //OTC灰色 Z
        }
    ];
    //折线图
    var lineChartData = {
        labels : ["","","","","","",""],
        datasets : [
            {
                fillColor : "rgba(220,220,220,0.5)",
                strokeColor : "rgba(220,220,220,1)",
                pointColor : "rgba(220,220,220,1)",
                pointStrokeColor : "#fff",
                data : [45,59,90,81,56,55,40]
            },
            {
                fillColor : "rgba(151,187,205,0.5)",
                strokeColor : "rgba(151,187,205,1)",
                pointColor : "rgba(151,187,205,1)",
                pointStrokeColor : "#fff",
                data : [28,48,40,19,96,27,100]
            }
        ]

    };

    new Chart(document.getElementById("doughnut").getContext("2d")).Doughnut(doughnutData);
    new Chart(document.getElementById("line").getContext("2d")).Line(lineChartData);

}();